package com.base.data.elasticsearch.autoconfig.conf;


import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "spring.data.elasticsearch")
public class BaseElasticsearchProperties {
    //nodes 以ip1:port1,ip2:port2
    String clusterNodes;
    String clusterName;
    String username;
    String pass;
    //aliyun ,own
    String type;
    /**
     * http 传输 大小限制 单位M 例如传入100 代表100M,不传默认200M，建议100-300之间
     */
    int httpBufferLimit;
    /**
     * 是否开启自动mappng的create & update
     */
    Boolean autoMapping = true;



    public String getClusterNodes() {
        return clusterNodes;
    }

    public void setClusterNodes(String clusterNodes) {
        this.clusterNodes = clusterNodes;
    }

    public String getClusterName() {
        return clusterName;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public Boolean getAutoMapping() {
        return autoMapping;
    }

    public void setAutoMapping(Boolean autoMapping) {
        this.autoMapping = autoMapping;
    }

    public int getHttpBufferLimit() {
        return httpBufferLimit;
    }

    public void setHttpBufferLimit(int httpBufferLimit) {
        this.httpBufferLimit = httpBufferLimit;
    }
}
